//
//  AddressItemCell.m
//  JiaoX
//
//  Created by yinqy on 15/1/16.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "AddressItemCell.h"

@implementation AddressItemCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ADDRESSITEM_ID = @"ADDRESSTEMCELL";
    AddressItemCell *cell = [tableView dequeueReusableCellWithIdentifier:ADDRESSITEM_ID];
    if (!cell) {
        cell = [[AddressItemCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ADDRESSITEM_ID];
    }
    return cell;
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        AddressItemView *addressCellView =  [[AddressItemView alloc]init];
        _addressCellView = addressCellView;
        [self addSubview:addressCellView];
    }
    return self;
}

-(void)setAddressItemframe:(AddressItemFrame *)addressItemframe{
    _addressItemframe = addressItemframe;
    [_addressCellView setAddressFrame:addressItemframe];
}



@end
